package com.example.aqarapp.entity;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.entity.MultiItemEntity;
import com.chad.library.adapter.base.entity.node.BaseExpandNode;
import com.chad.library.adapter.base.entity.node.BaseNode;

import java.util.List;

public class DeviceInfo extends BaseNode {
    public String DeviceName;
    public String Did;     //设备id
    public String model;  //物模型
    public String state;  //在线状态：0-在线 1-离线
    public BaseDeviceInfo baseDeviceInfo;


    public DeviceInfo(String deviceName, String did, String model, String state, BaseDeviceInfo baseDeviceInfo) {
        DeviceName = deviceName;
        Did = did;
        this.model = model;
        this.state = state;
        this.baseDeviceInfo = baseDeviceInfo;
    }

    public DeviceInfo(String deviceName, String did, String model, String state) {
        DeviceName = deviceName;
        Did = did;
        this.model = model;
        this.state = state;
    }

    public String getDeviceName() {
        return DeviceName;
    }

    public void setDeviceName(String deviceName) {
        DeviceName = deviceName;
    }

    public String getDid() {
        return Did;
    }

    public void setDid(String did) {
        Did = did;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public BaseDeviceInfo getBaseDeviceInfo() {
        return baseDeviceInfo;
    }

    public void setBaseDeviceInfo(BaseDeviceInfo baseDeviceInfo) {
        this.baseDeviceInfo = baseDeviceInfo;
    }


    @Nullable
    @Override
    public List<BaseNode> getChildNode() {
        return null;
    }

}
